// Diego Garcia 11360
package calculadora;
import java.util.Vector;
public class StackVector<E> implements Stack<E>{
    private E object;
    private Vector pila = new Vector<E>();
 
    public void push(E item){
      pila.add(item);  
        
    }
   
   public E pop(){
       E aux;
       aux=(E) pila.get(pila.size()-1);
       pila.remove(pila.size()-1);
       return aux;
   }
  
   public E peek(){
       E aux;
       aux=(E) pila.get(pila.size()-1);
       return aux;
   }
   
   public boolean empty(){
       return (size()==0);
   }
   
   public int size(){
       return pila.size();
   }
}
